﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/BackEndFashion.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Fashion.Models.ProductPropertyValueStatic>>" %>
<%@ Import Namespace="A" %>
<%@ Import Namespace="Fashion.Common.Const" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AllValueStatic
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>AllValueStatic</h2>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <th>Value</th>
            <th>Active</th>
            <th></th>
        </tr>
        <%foreach (var valueStatic in Model){%>
            <tr>
                <td><%=valueStatic.Value %></td>
                <td><%=valueStatic.Active.DisplayIconActive()%></td>
                <td>
                    <%=Html.ActionLink(ParameterTemplate.Image, "EditValueStatic", new { id= valueStatic.Id}).DisplayActionLinkByImage(HtmlCode.ImgIconEdit)%>
                    <%=Html.ActionLink(ParameterTemplate.Image, "DeleteValueStatic", new { id = valueStatic.Id, propertyId = valueStatic.PropertyId }, new { onclick = "return confirm('Are you sure you wish to delete this record?');" }).DisplayActionLinkByImage(HtmlCode.ImgIconDelete)%>
                </td>
            </tr>
        <%} %>
        <tr>
            <td colspan="3" align="right"><%=Html.ActionLink(ParameterTemplate.Image, "AddValueStatic", new {propertyId = this.GetQueryString(QueryStringName.PropertyId)}).DisplayActionLinkByImage(HtmlCode.ImgIconAddNew)%></td>
        </tr>
    </table>
</asp:Content>
